import java.util.Scanner;

public class Page_96_5 {
    public static void main(String[] args) {
        int arr[] = new int[100];
        int brr[] = new int[10];
        int i;
        int count0 = 0,count1 = 0,count2 = 0,count3 = 0,count4 = 0,count5 = 0,count6 = 0,count7 = 0,count8 = 0,count9 = 0;
        for(i = 0;i<100;i++)
        {
            arr[i] = (int)(Math.random()*10000);

        }
        for(i = 0;i<100;i++)
        {
            if(arr[i] % 10 ==0)
            {
                count0++;
            }
            if(arr[i] % 10 ==1)
            {
                count1++;
            }
            if(arr[i] % 10 ==2)
            {
                count2++;
            }
            if(arr[i] % 10 ==3)
            {
                count3++;
            }
            if(arr[i] % 10 ==4)
            {
                count4++;
            }
            if(arr[i] % 10 ==5)
            {
                count5++;
            }
            if(arr[i] % 10 ==6)
            {
                count6++;
            }
            if(arr[i] % 10 ==7)
            {
                count7++;
            }
            if(arr[i] % 10 ==8)
            {
                count8++;
            }
            if(arr[i] % 10 ==9)
            {
                count9++;
            }
        }
        brr[0] = count0;brr[1] = count1;brr[2] = count2;brr[3] = count3;brr[4] = count4;brr[5] = count5;brr[6] = count6;
        brr[7] = count7;brr[8] = count8;brr[9] = count9;
        for(i = 0;i<10;i++)
        {
            System.out.println(brr[i]);
        }

    }
}
